class Notifier < ActionMailer::Base
  def topic_send(rcpt, topic)
    recipients rcpt
    from  DlearnUtility.get_system_email
    subject DlearnUtility.get_topic_subject
    body :message=>DlearnUtility.get_topic_body, :topic=>topic
  end
  
  def answer_send(rcpt, answer)
    recipients rcpt
    from  DlearnUtility.get_system_email
    subject DlearnUtility.get_answer_subject
    body :message=>DlearnUtility.get_answer_body, :answer=>answer
  end
  
  def register_send(rcpt)
    recipients rcpt
    from  DlearnUtility.get_system_email
    subject DlearnUtility.get_register_subject
    body :message=>DlearnUtility.get_register_body
  end
  
  def group_by_course_send(rcpt, sender, mail_subject, mail_body)
    recipients rcpt
    from  sender
    subject mail_subject
    body :message=>mail_body
  end
end
